export type OptionType = {
  text: string
  value: string
}

export type QuestionRadioPropsType = {
  title?: string
  isVertical?: boolean
  options?: OptionType[]
  value?: string
  disabled?: boolean
  onChange?: (value: QuestionRadioPropsType) => void
}

export type QuestionRadioStateType = {
  stat: Array<{ name: string; count: number }>
}

export const QuestionRadioDefaultProps: QuestionRadioPropsType = {
  title: '单选标题',
  isVertical: false,
  options: [
    {
      text: '选项1',
      value: '1',
    },
    {
      text: '选项2',
      value: '2',
    },
  ],
  value: '1',
}
